package com.csvw.skr.newTask.entity.meeting;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by Administrator on 2016/12/7.
 */
@Entity
@Table(name = "csvw_skr_task_meeting_plan")
public class MeetingPlan {
    /**
     * 小区例会的ID， meeting +　小区的ID+当前日期（年月日时分秒）
     */
    @Id
    @Column(name = "pk_id", length = 50)
    private String id;

    /**
     * 小区例会的名称
     */
    @Column( length = 50)
    private String name;

    /**
     * 小区例会的概要
     */
    @Column( length = 200)
    private String description;

    /**
     * 小区例会的地址
     */
    private String address;

    /**
     * 小区例会的开始时间
     */
    private Date startTime;

    /**
     * 大区编号
     */
    @Column(length = 20)
    private String rbo;

    /**
     * 商务处编号
     */
    @Column(length = 20)
    private String commercial;

    /**
     * 小区编号
     */
    @Column(length = 50)
    private String area;

    /**
     * 小区经理
     */
    @Column(length = 20)
    private String businessManager;

    /**
     * 小区例会的结束时间
     */
    private Date endTime;

    /**
     * 小区例会的流程状态
     * 11   草稿
     * 21   待填写
     * 22   被驳回
     * 31   待审批
     * 41   已通过
     */
    @Column(nullable=false, columnDefinition="int default 11")
    private int status;

    /**
     * 小区例会纪要结果
     */
    @Column(length = 210)
    private String approvalDescription;

    /**
     * 小区例会计划图片IDs
     */
    private String pics;

    /**
     * 数据是否有效
     */
    @Column(nullable=false, columnDefinition="bit default 1")
    private boolean active;

    /**
     * 数据创建时间
     */

    private Date created;

    /**
     * 数据更新时间
     */
    private Date updated;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public String getRbo() {
        return rbo;
    }

    public void setRbo(String rbo) {
        this.rbo = rbo;
    }

    public String getCommercial() {
        return commercial;
    }

    public void setCommercial(String commercial) {
        this.commercial = commercial;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getBusinessManager() {
        return businessManager;
    }

    public void setBusinessManager(String businessManager) {
        this.businessManager = businessManager;
    }

    public String getPics() {
        return pics;
    }

    public void setPics(String pics) {
        this.pics = pics;
    }

    public String getApprovalDescription() {
        return approvalDescription;
    }

    public void setApprovalDescription(String approvalDescription) {
        this.approvalDescription = approvalDescription;
    }
}
